package org.jeecg.modules.xl.aftersale.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import   org.jeecg.modules.xl.aftersale.entity.XlCustomerAftersaleDetail;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.xl.exceltemplate.vo.AfterOrderImportVO;
import org.jeecg.modules.xl.h5api.vo.ASOrderDetailVo;

/**
 * @Description: 售后单明细
 * @Author: jeecg-boot
 * @Date:   2024-11-03
 * @Version: V1.0
 */
public interface XlCustomerAftersaleDetailMapper extends BaseMapper<XlCustomerAftersaleDetail> {

	/**
	 * 通过主表id删除子表数据
	 *
	 * @param mainId 主表id
	 * @return boolean
	 */
	public boolean deleteByMainId(@Param("mainId") String mainId);

  /**
   * 通过主表id查询子表数据
   *
   * @param mainId 主表id
   * @return List<XlCustomerAftersaleDetail>
   */
	public List<XlCustomerAftersaleDetail> selectByMainId(@Param("mainId") String mainId);

	/**
	 * 插叙已经做过售后单的条码
	 * @param targetData
	 * @return
	 */
	public List<AfterOrderImportVO> selectExitAfterOrderOfUpcCode(@Param("targetData") String targetData);

	public boolean deleteAfterOrder(@Param("workorder") String workorder);
	public boolean deleteAfterOrderDetail(@Param("workorder") String workorder);

	List<ASOrderDetailVo> getAfterOrderDetail(@Param("workorder") String workorder);


}
